]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Fix enterprise network connecting from panel
authorTuomas Nurmi <tuomas.nurmi@opinsys.fi>
Thu, 25 Jul 2024 07:14:22 +0000 (07:14 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 3 Aug 2024 18:05:12 +0000 (20:05 +0200)
Use the right variable. A static WirelessNetwork._securityTypes
variable does exist, but the correct variable when checking
autoconnect possibility is this._securityType; this._securityTypes
is undefined, causing clicking an enterprise network name in panel
network selector do nothing instead of properly opening GNOME
Settings panel.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7698

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3426>
(cherry picked from commit a21558d67f37b0c9161f3df21678c165004a02a5)

js/ui/status/network.js

index 404733b74cf1408d3dae5350efe96b51b33db7eb..bef59880da8c3d21e4cc1b152bd52dc200d17fd0 100644 (file)
@@ -934,8 +934,8 @@ const WirelessNetwork = GObject.registerClass({
 
     canAutoconnect() {
         const canAutoconnect =
-            this._securityTypes !== NM.UtilsSecurityType.WPA_ENTERPRISE &&
-            this._securityTypes !== NM.UtilsSecurityType.WPA2_ENTERPRISE;
+            this._securityType !== NM.UtilsSecurityType.WPA_ENTERPRISE &&
+            this._securityType !== NM.UtilsSecurityType.WPA2_ENTERPRISE;
         return canAutoconnect;
     }